<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var Month=parseInt(prompt("请输入一个月份"));
			var Day=parseInt(prompt("请输入一个日期数"));
			if(Month==3&&Day>=21||Month==4&&Day<=19){
				alert("白羊座");
			}else if(Month==4&&Day>=20||Month==5&&Day<=20){
				alert("金牛座");
			}else if(Month==5&&Day>=21||Month==6&&Day<=21){
				alert("双子座");
			}else if(Month==6&&Day>=22||Month==7&&Day<=22){
				alert("巨蟹座");
			}else if(Month==7&&Day>=23||Month==8&&Day<=22){
				alert("狮子座");
			}else if(Month==8&&Day>=23||Month==9&&Day<=22){
				alert("处女座");
			}else if(Month==9&&Day>=23||Month==10&&Day<=23){
				alert("天枰座");
			}else if(Month==10&&Day>=24||Month==11&&Day<=22){
				alert("天蝎座");
			}else if(Month==11&&Day>=23||Month==12&&Day<=21){
				alert("射手座");
			}else if(Month==12&&Day>=22||Month==1&&Day<=19){
				alert("摩羯座");
			}else if(Month==1&&Day>=20||Month==2&&Day<=18){
				alert("水瓶座");
			}else if(Month==2&&Day>=19||Month==3&&Day<=20){
				alert("双鱼座");
			}else{
				alert("请输入正确的月份和日期数");
			}
		</script>
	</body>
</html>
